package com.i72.product.webdemo.controller;

import com.i72.goods.api.AppleService;
import com.i72.governance.service.helper.ServiceHelper;
import com.i72.penetrate.rpc.RPCTarget;
import com.i72.penetrate.touch.TouchPlane;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import javax.servlet.ServletContext;


@Controller
@Slf4j
@Lazy
public class HomeController {


    /*
    //private static Logger logger = LoggerFactory.getLogger(HomeController.class);

    @Autowired
    private ServiceHelper serviceHelper;

    @Autowired
    private RPCTarget target;

    @Autowired
    private TouchPlane touchPlane;

    @Autowired
    private AppleService apple;

    @Autowired
    private ServletContext  servletContext;

    @Value("${product}")
    private String value;



    @RequestMapping("/home")
    @ResponseBody
    public String demo(String name,String value){


        WebApplicationContext webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);



        log.info("debug");

        //hello.say();

        return value;
    }*/
}
